package com.jec.module.sysmonitor.dao;

import java.util.List;

import org.springframework.data.jpa.repository.JpaRepository;

import com.jec.module.sysmonitor.entity.TerminalDevice;

public interface TerminalDeviceRepository extends JpaRepository<TerminalDevice,Integer>{
	
	public List<TerminalDevice> findAllByCode(String code);
	
	public List<TerminalDevice> findAllByCodeAndIdNot(String code, int id);
	
	public void deleteByNetUnitId(int netUnitId);
}
